package net.sudot.chess.constant;


import net.sudot.commons.utils.ConfigUtils;

/**
 * ServletContext中使用的常量
 *
 * @author tangjialin on 2017-03-24 0024.
 */
public interface ContextConstants {
    String CONTEXT_PATH_KEY = "CONTEXT_PATH"; // 项目根路径缓存键
    String GLOBAL_STATIC_RESOURCE_VERSION = "GLOBAL_STATIC_RESOURCE_VERSION"; // 解决静态资源缓存问题的类似版本号键

    String RSA_PUBLIC_KEY = "CRYPTOGRAPHIC_RSA_PUBLIC_KEY"; // RSA加解密公钥暂存Key
    String RSA_PUBLIC_VALUE = ConfigUtils.getConfigValue(RSA_PUBLIC_KEY); // RSA加解密公钥
    String RSA_PRIVATE_KEY = "CRYPTOGRAPHIC_RSA_PRIVATE_KEY"; // RSA加解密私钥暂存Key
    String RSA_PRIVATE_VALUE = ConfigUtils.getConfigValue(RSA_PRIVATE_KEY); // RSA加解密私钥
}
